import Vue from 'vue'
import App from './App'
import { all } from 'vue-client'

all()
require('./bootstrap/less/bootstrap.less')


// 手机抄表页面注册
Vue.component('meter-missionsearch', (resolve) => { require(['./components/mission/MeterMissionsearch'], resolve) })
Vue.component('meter-userinfsearch', (resolve) => { require(['./components/mission/MeterUserinfsearch'], resolve) })
Vue.component('meter-missionlist', (resolve) => { require(['./components/mission/MeterMissionlist'], resolve) })
Vue.component('owe-info', (resolve) => { require(['./components/mission/OweInfo'], resolve) })
// 登录界面
Vue.component('login', (resolve) => { require(['./components/server/Login'], resolve) })

// 底部button
Vue.component('home-page', (resolve) => { require(['./components/server/NavBottom'], resolve) })
// 用户查询
Vue.component('user-info', (resolve) => { require(['./components/Userfiles/UserInfo'], resolve) })
// 历史缴费查询
Vue.component('hand-plan', (resolve) => { require(['./components/history/HandPlan'], resolve) })
// 设置页面
Vue.component('tools-page', (resolve) => { require(['./components/Config/ToolsPage'], resolve) })
// 密码修改
Vue.component('change-password', (resolve) => { require(['./components/Config/ChangePassword'], resolve) })
// 用户查询内添加功能，--添加中间页面
Vue.component('user-page', (resolve) => { require(['./components/Userfiles/UserPage'], resolve) })
// 用户收费统计
Vue.component('owe-fee', (resolve) => { require(['./components/Userfiles/OweFee'], resolve) })
// 明细和打印
Vue.component('payment-details', (resolve) => { require(['./components/Userfiles/PaymentDetails'], resolve) })
Vue.component('test', (resolve) => { require(['./components/Test'], resolve) })

Vue.component('state-yingchao', (resolve) => { require(['./components/mission/StateYingchao'], resolve) })
Vue.component('state-huajia', (resolve) => { require(['./components/mission/StateHuajia'], resolve) })
Vue.component('update-yichao', (resolve) => { require(['./components/mission/UpdateYichao'], resolve) })


/* eslint-disable no-new */

Vue.interval = 1*60*1000
Vue.nopic = 'file:///android_asset/nopic.png'
Vue.mapSetup = false
new Vue({
  el: 'body',
  components: { App }
})
